﻿<?xml version="1.0" encoding="utf-8" ?>
<xsd:schema
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	elementFormDefault="qualified">

	<xsd:element name="categories">
		<xsd:complexType >
			<xsd:choice minOccurs="0" maxOccurs="unbounded" >
				<xsd:element name="category" type="categoryType" />
			</xsd:choice>
		</xsd:complexType>
	</xsd:element>

	<xsd:complexType name="categoryType" >
		<xsd:choice minOccurs="1" maxOccurs="unbounded" >
			<xsd:element name="code" type="codeType" />
		</xsd:choice>
		<xsd:attribute name="id" type="xsd:positiveInteger" />
	</xsd:complexType>

	<xsd:complexType name="codeType" >
		<xsd:attribute name="value" type="xsd:normalizedString" />
		<xsd:attribute name="text" type="xsd:string" />
		<xsd:attribute name="parent" type="xsd:normalizedString"  />
	</xsd:complexType>
</xsd:schema>
